#!/usr/bin/env python
# coding: utf-8

# In[40]:


products = [["iphone",6888],["MarPro",14800],["小米6",2499],["coffee",31],["book",60],["NIke",699]]
shoppingcart=[]
while 1:
    ip=input("what do you what to buy :")
    if ip == 'q':
        break
    for i in products :
        if ip == i[0] :
            shoppingcart.append(i)
            break
    else :
        print("product is not exist:",ip)
print("The goods you choose:",shoppingcart)    


# In[ ]:




